import os
import jinja2
import webapp2

JINJA_ENVIRONMENT = jinja2.Environment(
    loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
    extensions=['jinja2.ext.autoescape'],
    autoescape=True)

class HomeHandler(webapp2.RequestHandler):
    def get(self):
        template_values = {
            'name': 'raja manikandan',
        }
        template = JINJA_ENVIRONMENT.get_template('index.html')
        self.response.write(template.render(template_values))
		
class AboutHandler(webapp2.RequestHandler):
    def get(self):
        template_values = {
            'name': 'raja manikandan',
        }
        template = JINJA_ENVIRONMENT.get_template('about.html')
        self.response.write(template.render(template_values))
		
class SolutionsHandler(webapp2.RequestHandler):
    def get(self):
        template_values = {
            'name': 'raja manikandan',
        }
        template = JINJA_ENVIRONMENT.get_template('solutions.html')
        self.response.write(template.render(template_values))

class ServicesHandler(webapp2.RequestHandler):
    def get(self):
        template_values = {
            'name': 'raja manikandan',
        }
        template = JINJA_ENVIRONMENT.get_template('services.html')
        self.response.write(template.render(template_values))
		
class ContactHandler(webapp2.RequestHandler):
    def get(self):
        template_values = {
            'name': 'raja manikandan',
        }
        template = JINJA_ENVIRONMENT.get_template('contact.html')
        self.response.write(template.render(template_values))
		
		
app = webapp2.WSGIApplication([
    ('/', HomeHandler),
	('(?i)/home', HomeHandler),
	('(?i)/about', AboutHandler),
	('(?i)/solutions', SolutionsHandler),
	('(?i)/services', ServicesHandler),
	('(?i)/contact', ContactHandler),
], debug=True)
